<?php if (!defined('THINK_PATH')) exit();?><html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
 $map1=array("忠"=>'1',"远"=>'2', "尚"=>'3',"夏"=>'4',"信"=>'5',"亮"=>'6',"新"=>'7',"宽"=>'8',"强"=>'9',"国"=>'10',"群"=>'11',"坚"=>'12',"成"=>'13'); $map2=array("王"=>'0',"张"=>'1',"李"=>'2',"赵"=>'3'); if(isset($_GET['name'])){ $str=$_GET['name']; $r0=mb_substr( $str, 0, 1,"utf-8"); $r2=mb_substr( $str, 2, 1,"utf-8"); $num=$map2[$r0]*13+$map1[$r2]; echo "数据是".$num; } ?>
<form method="get">
<input type="string" name="name">
<input type="submit">
</form>
</html>